home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dgerfs.z / dgerfs
Encoding:
Text File  |  2002-10-03  |  5.6 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DGERFS - improve the computed solution to a system of linear equations
  10.      and provides error bounds and backward error estimates for the solution
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DGERFS( TRANS, N, NRHS, A, LDA, AF, LDAF, IPIV, B, LDB, X,
  14.                         LDX, FERR, BERR, WORK, IWORK, INFO )
  15.  
  16.          CHARACTER      TRANS
  17.  
  18.          INTEGER        INFO, LDA, LDAF, LDB, LDX, N, NRHS
  19.  
  20.          INTEGER        IPIV( * ), IWORK( * )
  21.  
  22.          DOUBLE         PRECISION A( LDA, * ), AF( LDAF, * ), B( LDB, * ),
  23.                         BERR( * ), FERR( * ), WORK( * ), X( LDX, * )
  24.  
  25. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  26.      These routines are part of the SCSL Scientific Library and can be loaded
  27.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  28.      directs the linker to use the multi-processor version of the library.
  29.  
  30.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  31.      4 bytes (32 bits). Another version of SCSL is available in which integers
  32.      are 8 bytes (64 bits).  This version allows the user access to larger
  33.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  34.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  35.      only one of the two versions; 4-byte integer and 8-byte integer library
  36.      calls cannot be mixed.
  37.  
  38. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  39.      DGERFS improves the computed solution to a system of linear equations and
  40.      provides error bounds and backward error estimates for the solution.
  41.  
  42. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  43.      TRANS   (input) CHARACTER*1
  44.              Specifies the form of the system of equations:
  45.              = 'N':  A * X = B     (No transpose)
  46.              = 'T':  A**T * X = B  (Transpose)
  47.              = 'C':  A**H * X = B  (Conjugate transpose = Transpose)
  48.  
  49.      N       (input) INTEGER
  50.              The order of the matrix A.  N >= 0.
  51.  
  52.      NRHS    (input) INTEGER
  53.              The number of right hand sides, i.e., the number of columns of
  54.              the matrices B and X.  NRHS >= 0.
  55.  
  56.      A       (input) DOUBLE PRECISION array, dimension (LDA,N)
  57.              The original N-by-N matrix A.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      LDA     (input) INTEGER
  75.              The leading dimension of the array A.  LDA >= max(1,N).
  76.  
  77.      AF      (input) DOUBLE PRECISION array, dimension (LDAF,N)
  78.              The factors L and U from the factorization A = P*L*U as computed
  79.              by DGETRF.
  80.  
  81.      LDAF    (input) INTEGER
  82.              The leading dimension of the array AF.  LDAF >= max(1,N).
  83.  
  84.      IPIV    (input) INTEGER array, dimension (N)
  85.              The pivot indices from DGETRF; for 1<=i<=N, row i of the matrix
  86.              was interchanged with row IPIV(i).
  87.  
  88.      B       (input) DOUBLE PRECISION array, dimension (LDB,NRHS)
  89.              The right hand side matrix B.
  90.  
  91.      LDB     (input) INTEGER
  92.              The leading dimension of the array B.  LDB >= max(1,N).
  93.  
  94.      X       (input/output) DOUBLE PRECISION array, dimension (LDX,NRHS)
  95.              On entry, the solution matrix X, as computed by DGETRS.  On exit,
  96.              the improved solution matrix X.
  97.  
  98.      LDX     (input) INTEGER
  99.              The leading dimension of the array X.  LDX >= max(1,N).
  100.  
  101.      FERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  102.              The estimated forward error bound for each solution vector X(j)
  103.              (the j-th column of the solution matrix X).  If XTRUE is the true
  104.              solution corresponding to X(j), FERR(j) is an estimated upper
  105.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  106.              divided by the magnitude of the largest element in X(j).  The
  107.              estimate is as reliable as the estimate for RCOND, and is almost
  108.              always a slight overestimate of the true error.
  109.  
  110.      BERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  111.              The componentwise relative backward error of each solution vector
  112.              X(j) (i.e., the smallest relative change in any element of A or B
  113.              that makes X(j) an exact solution).
  114.  
  115.      WORK    (workspace) DOUBLE PRECISION array, dimension (3*N)
  116.  
  117.      IWORK   (workspace) INTEGER array, dimension (N)
  118.  
  119.      INFO    (output) INTEGER
  120.              = 0:  successful exit
  121.              < 0:  if INFO = -i, the i-th argument had an illegal value
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          DDDDGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140. PARAMETERS
  141.      ITMAX is the maximum number of steps of iterative refinement.
  142.  
  143. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  144.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  145.  
  146.      This man page is available only online.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.